/**
 * output package name
 */
package com.kingdee.eas.common;

import com.kingdee.util.NumericExceptionSubItem;
import com.kingdee.util.NumericException;

/**
 * output class name
 */
public class EASBizException extends NumericException
{
    private static final String MAINCODE = "10";

    public static final NumericExceptionSubItem CHECKTEXTLENGTH1 = new NumericExceptionSubItem("10", "CHECKTEXTLENGTH1");
    public static final NumericExceptionSubItem CHECKTEXTLENGTH2 = new NumericExceptionSubItem("11", "CHECKTEXTLENGTH2");
    public static final NumericExceptionSubItem CHECKINT = new NumericExceptionSubItem("20", "CHECKINT");
    public static final NumericExceptionSubItem CHECKBLANK = new NumericExceptionSubItem("22", "CHECKBLANK");
    public static final NumericExceptionSubItem CHECKDUPLICATED = new NumericExceptionSubItem("23", "CHECKDUPLICATED");
    public static final NumericExceptionSubItem CHECKDUPNUMBER = new NumericExceptionSubItem("31", "CHECKDupNumber");
    public static final NumericExceptionSubItem CHECKPARENTDELETED = new NumericExceptionSubItem("41", "CHECKPARENTDELETED");
    public static final NumericExceptionSubItem CHECKPARENTUNEFFECTED = new NumericExceptionSubItem("42", "CHECKPARENTUNEFFECTED");
    public static final NumericExceptionSubItem CHECKPARENTBEUSED = new NumericExceptionSubItem("43", "CHECKPARENTBEUSED");
    public static final NumericExceptionSubItem CHECKNAMEBLANK = new NumericExceptionSubItem("221", "CHECKNAMEBLANK");
    public static final NumericExceptionSubItem CHECKNUMBLANK = new NumericExceptionSubItem("222", "CHECKNUMBLANK");
    public static final NumericExceptionSubItem CHECKNAMEDUP = new NumericExceptionSubItem("231", "CHECKNAMEDUP");
    public static final NumericExceptionSubItem CHECKNUMDUP = new NumericExceptionSubItem("232", "CHECKNUMDUP");
    public static final NumericExceptionSubItem CHECKEXIST = new NumericExceptionSubItem("321", "CHECKEXIST");
    public static final NumericExceptionSubItem DBDEADLOCK = new NumericExceptionSubItem("400", "DBDEADLOCK");
    public static final NumericExceptionSubItem RPCCOMMERR = new NumericExceptionSubItem("401", "RPCCOMMERR");
    public static final NumericExceptionSubItem OLDNEWACCOUNTSTART = new NumericExceptionSubItem("402", "OLDNEWACCOUNTSTART");
    public static final NumericExceptionSubItem IDCARD_NOTNULL = new NumericExceptionSubItem("500", "IDCARD_NOTNULL");
    public static final NumericExceptionSubItem IDCARD_NUMERROR = new NumericExceptionSubItem("501", "IDCARD_NUMERROR");
    public static final NumericExceptionSubItem IDCARD_INVALID = new NumericExceptionSubItem("502", "IDCARD_INVALID");
    public static final NumericExceptionSubItem IDCARD_NOTNULL_PARAM = new NumericExceptionSubItem("503", "IDCARD_NOTNULL_PARAM");
    public static final NumericExceptionSubItem IDCARD_NUMERROR_PARAM = new NumericExceptionSubItem("504", "IDCARD_NUMERROR_PARAM");
    public static final NumericExceptionSubItem IDCARD_INVALID_PARAM = new NumericExceptionSubItem("505", "IDCARD_INVALID_PARAM");
    public static final NumericExceptionSubItem CLASS_INIT_ERROR = new NumericExceptionSubItem("600", "CLASS_INIT_ERROR");
    public static final NumericExceptionSubItem EMPTY = new NumericExceptionSubItem("000", "EMPTY");

    /**
     * construct function
     * @param NumericExceptionSubItem info
     * @param Throwable cause
     * @param Object[] params
     */
    public EASBizException(NumericExceptionSubItem info, Throwable cause, Object[] params)
    {
        super(info, cause, params);
    }

    /**
     * construct function
     * @param NumericExceptionSubItem info,Object[] params
     */
    public EASBizException(NumericExceptionSubItem info, Object[] params)
    {
        this(info, null, params);
    }

    /**
     * construct function
     * @param NumericExceptionSubItem info,Throwable cause
     */
    public EASBizException(NumericExceptionSubItem info, Throwable cause)
    {
        this(info, cause, null);
    }

    /**
     * construct function
     * @param NumericExceptionSubItem info
     */
    public EASBizException(NumericExceptionSubItem info)
    {
        this(info, null, null);
    }

    /**
     * getMainCode function
     */
    public String getMainCode()
    {
        return MAINCODE;
    }
}